﻿using System.Windows;
using System.Windows.Controls;

namespace Duellum.Wpf.Main
{
	/// <summary>
	/// Interaction logic for MainMenu.xaml
	/// </summary>
	public partial class MainMenu : Page
	{
		public MainMenu()
		{
			InitializeComponent();
		}

		private void This_Loaded(object sender, RoutedEventArgs e)
		{
			
			//string[] fileNames = new[] {
			//    @"E:\Informat\Duelo2D\MAPAS\SUASTICA.MAP",
			//    //@"C:\JP\Dev\Duelo\VB 2D\DueloVB\MAPAS\feudo.map"//CIDFANTA.MAP"
			//    //@"C:\JP\Dev\Duelo\VB 2D\DueloVB\MAPAS\cubo.map"
			//    @"C:\JP\Dev\Duelo\Duellum\[local]\maps\discdos3.mapx",
			//    @"C:\JP\Dev\Duelo\VB 2D\DueloVB\MAPAS\DISCDOS3.MAP"
			//};
			//string fileName = fileNames.Where(f => File.Exists(f)).FirstOrDefault();
			//if (fileName != null)
			//{
			//    var fileStream = File.OpenRead(fileName);
				
			//    ApplicationCommands.Open.Execute(fileStream, this);
			//    //OpenMapForEdit(fileName, fileStream);
			//}
		}
	}
}
